﻿@model Resto.CostControl.Core.Models.SysSettings.Organization
@{
    ViewBag.Title = "部门维护";
    Layout = "~/Views/Shared/_LayoutForm.cshtml"; 
}
<style type="text/css">
    .pageFormContent p
    {
        width: auto;
    }
</style>
@using (Html.AjaxBeginForm("SaveOrg"))
{ 
    <div class="pageFormContent">
        @Html.HiddenFor(model => model.Id)
        @Html.HiddenFor(model => model.ParentId)
        @Html.HiddenFor(model => model.ParentCode)
        @Html.DWZTextBoxFor(model => model.ParentName, new { style = "width:340px" }).ReadOnly()
        @Html.DWZTextBoxFor(model => model.OrgCode, new { style = "width:340px" }).Remote(@Url.Action("ValidOrgCode", new { Id = Model.Id })).Required()
        @Html.DWZTextBoxFor(model => model.OrgName, new { style = "width:340px" }).Required()
        @Html.DWZDropDownListFor(model => model.OrgType, "OrgType", new { style = "width:348px" }).Required()
        @Html.DWZTextBoxFor(model => model.SeqNo, new { style = "width:340px" }).Number().Required()
        @Html.DWZTextAreaFor(model => model.Remark, new { style = "width:340px" })
    </div>
}
@Html.FormBar()
